﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel.Web;
using TicketSellerService;
using System.ServiceModel;

namespace FlightSearchServer
{
    delegate void print(string msg, params Object[] obj);

    class VendorRegistration : IVendorRegistration
    {
        private print console = Console.WriteLine;


        public int registerVendor(string vendorName, string address)
        {
            console( "New vendor registered: " + address);
            VendorsDB.getInstance().addVendor(new TicketsVendors( vendorName, address));
            
            return 0;
        }
    }
}
